|
The aggregate function call features In this chapter we were discussed the cases when square or angle brackets must be used during insertion of expressions into the "Text" object. Remember that all the expressions, being non-standard in terms of the Pascal language interpreter (which is used for the expressions’ value calculation), should be enclosed in angle brackets. The DB fields (access to them is performed via the special construction of the "Table name."Field name"" kind), as well as variables from the variables list (as well as system variables) are included in this group. It is necessary to use angle brackets when calling the aggregate functions because of their realization. So, the following record form is not correct: [SUM(<Group."ItemsTotal">,MasterData1) * 2] and this is the correct one: [<SUM(<Group."ItemsTotal">,MasterData1)> * 2] Let us also remember that in case, when the only member of the expression is enclosed in square brackets, FastReport allows omitting angle brackets, which means that both the record forms [<SUM(<Group."ItemsTotal">,MasterData1)>] are identical. |